package com.neusoft.yuejian26.yuejian_26.Other;

import android.content.Context;
import android.content.SharedPreferences;

public class CacheInfo {
    private SharedPreferences sharedPreferences;

    public CacheInfo(Context context){
        sharedPreferences = context.getSharedPreferences("CacheInfo", Context.MODE_PRIVATE);
    }
    public void setUserIdCache(String userId){
        SharedPreferences.Editor editor = sharedPreferences.edit();
        editor.putString("Cache_UserId",userId);
        editor.commit();
    }
    public String getUserIdCache(){
        return sharedPreferences.getString("Cache_UserId",null);
    }

}
